import request from "@/utils/request";

//获取店铺首页导航链接列表
export function getShopBanners(pageVo) {
  return request({
    url: "/shop_links/search",
    method: "post",
    data: pageVo
  });
}
//添加店铺链接
export function addShopBanner(banner) {
  return request({
    url: "/shop_links",
    method: "post",
    data: banner
  });
}
// 更新店铺链接
export function updateShopBanner(banner) {
  return request({
    url: "/shop_links/" + banner.id,
    method: "put",
    data: banner
  });
}
//删除店铺链接
export function deleteShopBanner(id) {
  return request({
    url: "/shop_links/" + id,
    method: 'delete'
  })
}
